package com.demo.thread.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@Slf4j
@RestController
public class TestThreadController {

    @GetMapping("/testThread")
    public void testThreadController() throws InterruptedException {
        log.info("请求:count={}", Thread.currentThread().getName());
        TimeUnit.MINUTES.sleep(10);
    }
}
